package cn.iocoder.yudao.module.nginxui.controller.admin.httpconfig.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - Nginx HTTP块主配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class HttpConfigRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30668")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "主配置ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26247")
    @ExcelProperty("主配置ID")
    private Long configId;

    @Schema(description = "是否启用sendfile机制")
    @ExcelProperty("是否启用sendfile机制")
    private Integer sendfile;

    @Schema(description = "长连接超时时间（秒）")
    @ExcelProperty("长连接超时时间（秒）")
    private Integer keepaliveTimeout;

    @Schema(description = "客户端最大请求体大小")
    @ExcelProperty("客户端最大请求体大小")
    private String clientMaxBodySize;

    @Schema(description = "全局日志格式定义")
    @ExcelProperty("全局日志格式定义")
    private String logFormat;

    @Schema(description = "HTTP块额外自定义配置")
    @ExcelProperty("HTTP块额外自定义配置")
    private String extraHttpConfig;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态")
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}